finding the limit of a function